#include "MainUI.h"

void MainUI::m_initTimer()
{
    /* 10MS 定时器*/
    QObject::connect(&m_timer10ms, &QTimer::timeout, this, &MainUI::m_handleTimeout_10ms);
    m_timer10ms.setInterval(10);
    m_timer10ms.start();
    
    /* 100MS 定时器*/
    QObject::connect(&m_timer100ms, &QTimer::timeout, this, &MainUI::m_handleTimeout_100ms);
    m_timer100ms.setInterval(100);
    m_timer100ms.start();
    
    /* 1000MS 定时器*/
    QObject::connect(&m_timer1000ms, &QTimer::timeout, this, &MainUI::m_handleTimeout_1000ms);
    m_timer1000ms.setInterval(1000);
    m_timer1000ms.start();
}

void MainUI::m_handleTimeout_10ms()
{
    m_movieAtStartup();
    m_comAnalysis();
}

void MainUI::m_handleTimeout_100ms()
{
  
}

void MainUI::m_handleTimeout_1000ms()
{
    
}
